﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Supplier_Active.aspx.cs" Inherits="Booking_Hotel.Supplier_Active" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
        }
        .style3
        {
            height: 23px;
        }
        .style4
        {
            width: 150px;
        }
        .style5
        {
            height: 23px;
            width: 150px;
        }
    </style>
</head>
<body>
    
    
    
    <form id="form1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"/>
    
    <div>
        
        <table class="style1">
            <tr>
                <td class="style4">
                    Username :</td>
                <td>
                    <asp:DropDownList ID="DropDownList1" runat="server" 
                        DataSourceID="LQ_DLL_SupplierUsername" DataTextField="UserName" 
                        DataValueField="UserName" Width="250px" AutoPostBack="True">
                    </asp:DropDownList>
                    <asp:LinqDataSource ID="LQ_DLL_SupplierUsername" runat="server" 
                        ContextTypeName="Booking_Hotel.DBML.ThanhBHotelDataContext" OrderBy="UserName" 
                        Select="new (UserName)" TableName="Suppliers">
                    </asp:LinqDataSource>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    Supplier lerver :</td>
                <td>
                    <asp:TextBox ID="txt_SupplierLever" runat="server" Width="250px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style5">
&nbsp;Active Date:</td>
                <td class="style3">
        <asp:TextBox runat="server" ID="txt_Date" Width="230px" />
        <asp:ImageButton runat="Server" ID="Image1" ImageUrl="~/Images/Calendar_scheduleHS.png" 
                        AlternateText="Click to show calendar" Height="16px" /><br />
        <asp:CalendarExtender ID="calendarButtonExtender" runat="server" TargetControlID="txt_Date" 
            PopupButtonID="Image1" />
                    
                    </td>
            </tr>
            <tr>
                <td class="style4">
                    Active :</td>
                <td>
                    <asp:CheckBox ID="CB_Active" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="style2" colspan="2">
                    <asp:Button ID="Button1" runat="server" Text="Cập nhập" 
                        onclick="Button1_Click" />
                </td>
            </tr>
        </table>
        
    </div>

    Thông tin vừa chỉnh sửa.
    <asp:GridView ID="gv_Supplier" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" DataKeyNames="SupplierID" ForeColor="#333333" GridLines="None">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="UserName" HeaderText="UserName" 
                SortExpression="UserName" />
            <asp:BoundField DataField="NgayActive" HeaderText="NgayActive" 
                SortExpression="NgayActive" />
            <asp:BoundField DataField="SupplierLevel" HeaderText="SupplierLevel" 
                SortExpression="SupplierLevel" />
            <asp:CheckBoxField DataField="Active" HeaderText="Active" 
                SortExpression="Active" />
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
    </form>
</body>
</html>
